projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f004b66
)
Add a (broken) unit test to exemplify Bug#11218.
author
Philipp Stephani
<phst@google.com>
Tue, 24 Nov 2020 17:38:36 +0000
(18:38 +0100)
committer
Philipp Stephani
<phst@google.com>
Tue, 24 Nov 2020 17:39:58 +0000
(18:39 +0100)
* test/lisp/emacs-lisp/ert-tests.el
(ert-test-with-demoted-errors): New (broken) unit test.
test/lisp/emacs-lisp/ert-tests.el
patch
|
blob
|
history
diff --git
a/test/lisp/emacs-lisp/ert-tests.el
b/test/lisp/emacs-lisp/ert-tests.el
index 96189356c0205ec84ecd5c17b9f4be7623438835..1f54c8d07e4be22ccd325d4c99037bb6d91e2db6 100644
(file)
--- a/
test/lisp/emacs-lisp/ert-tests.el
+++ b/
test/lisp/emacs-lisp/ert-tests.el
@@
-801,6
+801,11
@@
This macro is used to test if macroexpansion in `should' works."
(should (eql 0 (ert-stats-completed-unexpected stats)))
(should (eql 1 (ert-stats-skipped stats)))))
+(ert-deftest ert-test-with-demoted-errors ()
+ "Check that ERT correctly handles `with-demoted-errors'."
+ :expected-result :failed ;; FIXME! Bug#11218
+ (should-not (with-demoted-errors (error "Foo"))))
+
(provide 'ert-tests)